﻿<%@ Page Language="C#" MasterPageFile="~/admin/AdminTemplate.master" AutoEventWireup="true" CodeFile="ManageFeedBack.aspx.cs" Inherits="admin_ViewDetailContent" Title="ADmin" UICulture="vi" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

 

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    &nbsp;<asp:Panel ID="Panel2" runat="server" ForeColor="White" GroupingText="Bảng thống kê"
        Height="100%" Width="95%">
        <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="SessionID" OnCustomUnboundColumnData="ASPxGridView1_CustomUnboundColumnData" Width="100%">
            <Columns>
                <dxwgv:GridViewDataTextColumn Caption="Index" FieldName="SessionID" UnboundType="Integer"
                    VisibleIndex="0">
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="Ngưởi gửi" FieldName="expert" UnboundType="String" 
                    VisibleIndex="1">
                    <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="Người nhận" FieldName="member"  UnboundType="String"
                    VisibleIndex="2">
                    <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="Ti&#234;u đề" FieldName="SessionTitle" UnboundType="String"
                    VisibleIndex="3">
                    <Settings AutoFilterCondition="Contains" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataDateColumn Caption="Thời gian" FieldName="SessionTime" UnboundType="DateTime"
                    VisibleIndex="4" SortIndex="0" SortOrder="Descending">
                </dxwgv:GridViewDataDateColumn>
                <dxwgv:GridViewDataHyperLinkColumn Caption="#" FieldName="SessionID" VisibleIndex="5">
                    <PropertiesHyperLinkEdit NavigateUrlFormatString="ManageFeedBack.aspx?sessionid={0}"
                        Text="Xem chi tiết" TextFormatString="Xem chi tiết">
                    </PropertiesHyperLinkEdit>
                    <Settings AllowAutoFilter="False" AllowAutoFilterTextInputTimer="False" />
                </dxwgv:GridViewDataHyperLinkColumn>
                <dxwgv:GridViewCommandColumn VisibleIndex="6">
                    <ClearFilterButton Visible="True">
                    </ClearFilterButton>
                </dxwgv:GridViewCommandColumn>
            </Columns>
            <SettingsPager PageSize="5">
            </SettingsPager>
            <Settings ShowFilterRow="True" />
        </dxwgv:ASPxGridView>
        &nbsp;
    </asp:Panel>
    <br />
    <br />
    <asp:Panel ID="Panel1" runat="server" ForeColor="White" GroupingText="Bảng chi tiết"
        Height="95%" Width="95%">
        <table width="100%">
            <tr>
                <td style="width: 115px; text-align: left; height: 21px;">
                    Mã số :</td>
                <td style="text-align: left; height: 21px;">
                    <asp:Label ID="lbID" runat="server" Text="Label"></asp:Label></td>
                
            </tr>
            <tr>
                <td style="width: 115px; text-align: left">
                    Người gửi</td>
                <td style="text-align: left">
                    <asp:Label ID="lbFromId" runat="server" Text="Label"></asp:Label></td>
              
            </tr>
            <tr>
                <td style="width: 115px; text-align: left">
                    Người nhận</td>
                <td style="text-align: left">
                    <asp:Label ID="lbtoid" runat="server" Text="Label" EnableViewState="False"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 115px; text-align: left">
                    Tiêu đề :</td>
                <td style="text-align: left">
                    <asp:TextBox ID="txttitle" runat="server" MaxLength="50" ReadOnly="True" Rows="2"
                        TextMode="MultiLine" Width="227px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 115px; text-align: left">
                    Nội Dung:</td>
                <td style="text-align: left">
                    <asp:TextBox ID="txtcontent" runat="server" MaxLength="4000" Rows="5" TextMode="MultiLine"
                        Width="231px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 115px; text-align: left">
                    Thời gian
                </td>
                <td style="text-align: left">
                    <asp:Label ID="lbTime" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 115px; text-align: left;">
                    Trả lời</td>
                <td>
                    <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/admin/fckeditor/"
                        Height="300px">
                    </FCKeditorV2:FCKeditor>
                </td>
                
            </tr>
            <tr>
                <td style="width: 115px; text-align: left">
                    <asp:HiddenField ID="hfNguoigui" runat="server" />
                </td>
                <td style="text-align: left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="FCKeditor1"
                        ErrorMessage="* Bạn phải điền vào ô trả lời"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 115px; text-align: left">
                    <asp:HiddenField ID="hfnguoinhan" runat="server" />
                </td>
                <td style="text-align: left">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Trả lời" Width="113px" />
                    <asp:Label ID="labelTHongbao" runat="server" Text="Label" Width="187px"></asp:Label></td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

